<?php
/**
 * Copyright              [HD框架] (C)2011-2012 houdunwang ，Inc. 
 * Encoding               UTF-8 
 * @author                向军
 * Link                   http://www.houdunwang.com       
 * E-mail                 houdunwangxj@gmail.com
 */
class newsViewModel extends viewModel {

    public $table = "news";
    public $view = array(
        "category" => array(
            "join_type" => "inner",
            "on" => "news.catid = category.catid"
        ),
        "user" => array(
            "join_type" => "inner",
            "on" => "news.uid = user.uid"
        ),
        "news_data" => array(
            "join_type" => "inner",
            "on" => "news.id = news_data.nid",
        )
    );

}

?>
